﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Lead2012.Business
{
	public class CalendarInfo
	{
		#region Properties

		[Required]
		[StringLength(100)]
		public string Title { get; set; }

		[StringLength(1000)]
		public string Description { get; set; }

		[Required]		
		public string StartDate { get; set; }

		[Required]
		public string DurationMinutes { get; set; }

		[Required]		
		public string ReminderMinutes { get; set; }

		[Required]
		public bool IsCompleted { get; set; }

		[StringLength(20)]
		[RegularExpression(@"^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?))[2-9]\d{2}[- ]?\d{4}$", ErrorMessage = @"The PhoneSource number is incorrect.")]
		public string PhoneSource { get; set; }

		[StringLength(20)]
		[RegularExpression(@"^[\d*#]{1,20}$", ErrorMessage = @"The PhoneSourceExtension is incorrect.")]
		public string PhoneSourceExtension { get; set; }

		[StringLength(20)]
		public string PhoneDestination { get; set; }

		[Required]		
		public string AlertType { get; set; }

		[Required]
		public string CalendarItemType { get; set; }

		public int LeadId { get; set; }

		public int AgentId { get; set; }

		public bool ClearAlertsUponStatusChange { get; set; }

		public int Id { get; set; }

		#endregion
	}

	public class CalendarInfoEx
	{
		public int Id { get; set; }
		public string LeadName { set; get; }
		public string Title { get; set; }
		public DateTime StartDate { get; set; }
	}
}
